testgtk: Get rid of gdk_drawable_get_size() usage
authorBenjamin Otte <otte@redhat.com>
Mon, 20 Sep 2010 14:47:06 +0000 (16:47 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:44 +0000 (15:11 +0200)
tests/testgtk.c

index 355c2127a3d9f0a444be137c4261436d13a993ac..66efa9efc12b7139052d05765c4c12775e500906 100644 (file)
@@ -8697,7 +8697,9 @@ find_widget (GtkWidget *widget, FindWidgetData *data)
       while (window != gtk_widget_get_window (gtk_widget_get_parent (widget)))
        {
          gint tx, ty, twidth, theight;
-         gdk_drawable_get_size (window, &twidth, &theight);
+         
+          twidth = gdk_window_get_width (window);
+          theight = gdk_window_get_height (window);
 
          if (new_allocation.x < 0)
            {